% GNUPLOT: LaTeX picture with Postscript
\begingroup
  \makeatletter
  \providecommand\color[2][]{%
    \GenericError{(gnuplot) \space\space\space\@spaces}{%
      Package color not loaded in conjunction with
      terminal option `colourtext'%
    }{See the gnuplot documentation for explanation.%
    }{Either use 'blacktext' in gnuplot or load the package
      color.sty in LaTeX.}%
    \renewcommand\color[2][]{}%
  }%
  \providecommand\includegraphics[2][]{%
    \GenericError{(gnuplot) \space\space\space\@spaces}{%
      Package graphicx or graphics not loaded%
    }{See the gnuplot documentation for explanation.%
    }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
    \renewcommand\includegraphics[2][]{}%
  }%
  \providecommand\rotatebox[2]{#2}%
  \@ifundefined{ifGPcolor}{%
    \newif\ifGPcolor
    \GPcolortrue
  }{}%
  \@ifundefined{ifGPblacktext}{%
    \newif\ifGPblacktext
    \GPblacktexttrue
  }{}%
  % define a \g@addto@macro without @ in the name:
  \let\gplgaddtomacro\g@addto@macro
  % define empty templates for all commands taking text:
  \gdef\gplbacktext{}%
  \gdef\gplfronttext{}%
  \makeatother
  \ifGPblacktext
    % no textcolor at all
    \def\colorrgb#1{}%
    \def\colorgray#1{}%
  \else
    % gray or color?
    \ifGPcolor
      \def\colorrgb#1{\color[rgb]{#1}}%
      \def\colorgray#1{\color[gray]{#1}}%
      \expandafter\def\csname LTw\endcsname{\color{white}}%
      \expandafter\def\csname LTb\endcsname{\color{black}}%
      \expandafter\def\csname LTa\endcsname{\color{black}}%
      \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
      \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
      \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
      \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
      \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
      \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
      \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
      \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
      \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
    \else
      % gray
      \def\colorrgb#1{\color{black}}%
      \def\colorgray#1{\color[gray]{#1}}%
      \expandafter\def\csname LTw\endcsname{\color{white}}%
      \expandafter\def\csname LTb\endcsname{\color{black}}%
      \expandafter\def\csname LTa\endcsname{\color{black}}%
      \expandafter\def\csname LT0\endcsname{\color{black}}%
      \expandafter\def\csname LT1\endcsname{\color{black}}%
      \expandafter\def\csname LT2\endcsname{\color{black}}%
      \expandafter\def\csname LT3\endcsname{\color{black}}%
      \expandafter\def\csname LT4\endcsname{\color{black}}%
      \expandafter\def\csname LT5\endcsname{\color{black}}%
      \expandafter\def\csname LT6\endcsname{\color{black}}%
      \expandafter\def\csname LT7\endcsname{\color{black}}%
      \expandafter\def\csname LT8\endcsname{\color{black}}%
    \fi
  \fi
  \setlength{\unitlength}{0.0500bp}%
  \begin{picture}(7200.00,5040.00)%
    \gplgaddtomacro\gplbacktext{%
      \csname LTb\endcsname%
      \put(1100,640){\makebox(0,0)[r]{\strut{}-350}}%
      \put(1100,1087){\makebox(0,0)[r]{\strut{}-300}}%
      \put(1100,1534){\makebox(0,0)[r]{\strut{}-250}}%
      \put(1100,1981){\makebox(0,0)[r]{\strut{}-200}}%
      \put(1100,2428){\makebox(0,0)[r]{\strut{}-150}}%
      \put(1100,2875){\makebox(0,0)[r]{\strut{}-100}}%
      \put(1100,3322){\makebox(0,0)[r]{\strut{}-50}}%
      \put(1100,3769){\makebox(0,0)[r]{\strut{} 0}}%
      \put(1100,4216){\makebox(0,0)[r]{\strut{} 50}}%
      \put(1220,440){\makebox(0,0){\strut{} 2}}%
      \put(1930,440){\makebox(0,0){\strut{} 4}}%
      \put(2640,440){\makebox(0,0){\strut{} 6}}%
      \put(3350,440){\makebox(0,0){\strut{} 8}}%
      \put(4060,440){\makebox(0,0){\strut{} 10}}%
      \put(4770,440){\makebox(0,0){\strut{} 12}}%
      \put(5480,440){\makebox(0,0){\strut{} 14}}%
      \put(6190,440){\makebox(0,0){\strut{} 16}}%
      \put(6900,440){\makebox(0,0){\strut{} 18}}%
      \put(400,2540){\rotatebox{90}{\makebox(0,0){\strut{}log$_{10}$(dn)/dlog$_{10}$(m) [h$^{3}$Mpc$^{-3}$]}}}%
      \put(4060,140){\makebox(0,0){\strut{}log$_{10}$(m) [M$\odot$/h]}}%
      \put(4060,4740){\makebox(0,0){\strut{}Comparison of MF from Reed et al. and Milli-Millenium Simulation (z=7.883)}}%
    }%
    \gplgaddtomacro\gplfronttext{%
      \csname LTb\endcsname%
      \put(5997,4277){\makebox(0,0)[r]{\strut{}Reed et al}}%
      \csname LTb\endcsname%
      \put(5997,4077){\makebox(0,0)[r]{\strut{}Milli-Millenium}}%
    }%
    \gplgaddtomacro\gplbacktext{%
      \csname LTb\endcsname%
      \put(1884,1257){\makebox(0,0)[r]{\strut{}-7}}%
      \put(1884,1466){\makebox(0,0)[r]{\strut{}-6}}%
      \put(1884,1675){\makebox(0,0)[r]{\strut{}-5}}%
      \put(1884,1884){\makebox(0,0)[r]{\strut{}-4}}%
      \put(1884,2093){\makebox(0,0)[r]{\strut{}-3}}%
      \put(1884,2301){\makebox(0,0)[r]{\strut{}-2}}%
      \put(1884,2510){\makebox(0,0)[r]{\strut{}-1}}%
      \put(1884,2719){\makebox(0,0)[r]{\strut{} 0}}%
      \put(1884,2928){\makebox(0,0)[r]{\strut{} 1}}%
      \put(1884,3137){\makebox(0,0)[r]{\strut{} 2}}%
      \put(2004,1057){\makebox(0,0){\strut{} 9.5}}%
      \put(2652,1057){\makebox(0,0){\strut{} 10}}%
      \put(3300,1057){\makebox(0,0){\strut{} 10.5}}%
      \put(3948,1057){\makebox(0,0){\strut{} 11}}%
      \put(4596,1057){\makebox(0,0){\strut{} 11.5}}%
      \put(5244,1057){\makebox(0,0){\strut{} 12}}%
    }%
    \gplgaddtomacro\gplfronttext{%
    }%
    \gplgaddtomacro\gplbacktext{%
      \csname LTb\endcsname%
      \put(1884,1257){\makebox(0,0)[r]{\strut{}-7}}%
      \put(1884,1466){\makebox(0,0)[r]{\strut{}-6}}%
      \put(1884,1675){\makebox(0,0)[r]{\strut{}-5}}%
      \put(1884,1884){\makebox(0,0)[r]{\strut{}-4}}%
      \put(1884,2093){\makebox(0,0)[r]{\strut{}-3}}%
      \put(1884,2301){\makebox(0,0)[r]{\strut{}-2}}%
      \put(1884,2510){\makebox(0,0)[r]{\strut{}-1}}%
      \put(1884,2719){\makebox(0,0)[r]{\strut{} 0}}%
      \put(1884,2928){\makebox(0,0)[r]{\strut{} 1}}%
      \put(1884,3137){\makebox(0,0)[r]{\strut{} 2}}%
      \put(2004,1057){\makebox(0,0){\strut{} 9.5}}%
      \put(2652,1057){\makebox(0,0){\strut{} 10}}%
      \put(3300,1057){\makebox(0,0){\strut{} 10.5}}%
      \put(3948,1057){\makebox(0,0){\strut{} 11}}%
      \put(4596,1057){\makebox(0,0){\strut{} 11.5}}%
      \put(5244,1057){\makebox(0,0){\strut{} 12}}%
    }%
    \gplgaddtomacro\gplfronttext{%
    }%
    \gplbacktext
    \put(0,0){\includegraphics{mf-comparison}}%
    \gplfronttext
  \end{picture}%
\endgroup
